﻿<!--请勿在模板中使用<script></script>-->
<div class="leftlist margintop5">
	<div class="title">投票调查</div>
	<div class="body cssPluginVote">
		{#if $T.recordcount > 0}
		<form id="voteform" name="voteform">
		<table width="100%">
			<tr>
			<th>{$T.title}</th>
			</tr>
		</table>
		{#if $T.mtype==1}
		{#foreach $T.table as record}
		<dl>
			<dt><input type="checkbox" name="vote" value="{$T.record.id}" /></dt>
			<dd>{$T.record.text}</dd>
		</dl>
		{#/for}
		{#else}
		{#foreach $T.table as record}
		<dl>
			<dt><input type="radio" name="vote" value="{$T.record.id}" /></dt>
			<dd>{$T.record.text}</dd>
		</dl>
		{#/for}
		{#/if}
		<div class="votesubmit">
			<input type="button" onclick="ajaxPluginVoteAdd({$T.id},{$T.mtype},this)" value="投票" class="LoginInput">
			<input type="button" value="查看" class="LoginInput" onclick="window.open('{site.Dir}extends/vote/index.aspx?Id={$T.id}');">
		</div>
		</form>
		{#/if}
	</div>
</div>